package com.ttg.web.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.AdminRoleAuthMapper;
import com.ttg.model.pojo.AdminRoleAuth;
import com.ttg.web.service.AdminRoleAuthService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/1/18 16:24
 */
@Service
public class AdminRoleAuthServiceImpl extends ServiceImpl<AdminRoleAuthMapper,AdminRoleAuth> implements AdminRoleAuthService {
    @Override
    public List<AdminRoleAuth> selectAdminRoleAuthByRoleIds(List<Long> admRoleIds) {
        LambdaQueryWrapper<AdminRoleAuth> wrapper = new LambdaQueryWrapper<AdminRoleAuth>();
        wrapper.in(AdminRoleAuth::getAraRoleId, admRoleIds);
        return list(wrapper);
    }
}
